Skip to content

Conversation

@tzanko-matev
Copy link
Contributor

@tzanko-matev tzanko-matev commented Aug 19, 2025

Added a Tracer trait for implementing Python tracers in Rust using the sys.monitoring API. Works only for Python >=3.12..

Added a test tracer print_tracer in tests/print_tracer.rs.

The trait is not complete, it contains methods for just two events: CALL and LINE. We'll finish it in another PR.

@tzanko-matev tzanko-matev force-pushed the tracer-trait branch 2 times, most recently from 3c04842 to 1b92837 Compare August 19, 2025 15:49
@tzanko-matev tzanko-matev marked this pull request as ready for review August 19, 2025 15:50
Copy link

@Ro6afF Ro6afF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@alehander92 alehander92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tzanko-matev explained it to me in a call: seems reasonable

@tzanko-matev tzanko-matev merged commit 2169f96 into main Aug 20, 2025
2 checks passed
@tzanko-matev tzanko-matev deleted the tracer-trait branch August 20, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants